import request from '@/utils/request'


// 查询我的钱包交易记录列表
export function listMy(query) {
	return request({
		url: '/wallet/walletTransaction/list/my',
		method: 'get',
		params: query
	})
}

// 查询钱包交易记录列表
export function listWallet(query) {
	return request({
		url: '/wallet/walletTransaction/list',
		method: 'get',
		params: query
	})
}

// 查询钱包交易记录详细
export function getWallet(id) {
	return request({
		url: '/wallet/walletTransaction/' + id,
		method: 'get'
	})
}

// 新增钱包交易记录
export function addWallet(data) {
	return request({
		url: '/wallet/walletTransaction',
		method: 'post',
		data: data
	})
}

// 修改钱包交易记录
export function updateWallet(data) {
	return request({
		url: '/wallet/walletTransaction',
		method: 'put',
		data: data
	})
}

// 删除钱包交易记录
export function delWallet(id) {
	return request({
		url: '/wallet/walletTransaction/' + id,
		method: 'delete'
	})
}